<?php

$big = imagecreatefromjpeg('./1.jpg');
$small = imagecreatefrompng('./shuiyin.png');

//print_r(getimagesize());
list($bw,$bh) = getimagesize('./1.jpg');
list($w,$h) = getimagesize('./shuiyin.png');
imagecopymerge($big,$small,$bw-$w,$bh-$h,0,0,$w,$h,40);
header('Content-type:image/png');
imagepng($big,'last.png');
imagedestroy($small);
imagedestroy($big);



?>